package com.xz.demo.model;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     Singletion   
 * @package    com.xz.demo.model  
 * @date   2019/12/3 14:13  
 * @explain
 */
public class Singletion {

    private static Singletion singletion;


    // 将构造私有化
    private Singletion() {
    }

    public static Singletion getInstance(){
        if (singletion == null){
            singletion = new Singletion();
        }
        return singletion;
    }
}
